package com.hube.platform.tenant.entity.vo;

/**
 * @author : Aaron
 * @date : 2022/6/13
 */
public class DatabaseMonitorVO {
    private String tenantId;

    private Integer activeConnections;

    private Integer idleConnections;

    private Integer maxConnections;

    private Integer minConnections;

    private Integer pendingConnections;

    private Integer totalConnections;

    private Long connectionCreation;

    private Long usage;

    private Long connectionTimeoutRate;

    private Long wait;

    private Long monitorTime;

    private Integer status = 1; //1正常，0异常

    private String remarks;

    public DatabaseMonitorVO() {
    }

    public DatabaseMonitorVO(String tenantId, Long monitorTime) {
        this.tenantId = tenantId;
        this.monitorTime = monitorTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getActiveConnections() {
        return activeConnections;
    }

    public void setActiveConnections(Integer activeConnections) {
        this.activeConnections = activeConnections;
    }

    public Integer getIdleConnections() {
        return idleConnections;
    }

    public void setIdleConnections(Integer idleConnections) {
        this.idleConnections = idleConnections;
    }

    public Integer getMaxConnections() {
        return maxConnections;
    }

    public void setMaxConnections(Integer maxConnections) {
        this.maxConnections = maxConnections;
    }

    public Integer getMinConnections() {
        return minConnections;
    }

    public void setMinConnections(Integer minConnections) {
        this.minConnections = minConnections;
    }

    public Integer getPendingConnections() {
        return pendingConnections;
    }

    public void setPendingConnections(Integer pendingConnections) {
        this.pendingConnections = pendingConnections;
    }

    public Integer getTotalConnections() {
        return totalConnections;
    }

    public void setTotalConnections(Integer totalConnections) {
        this.totalConnections = totalConnections;
    }

    public Long getConnectionCreation() {
        return connectionCreation;
    }

    public void setConnectionCreation(Long connectionCreation) {
        this.connectionCreation = connectionCreation;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Long getUsage() {
        return usage;
    }

    public void setUsage(Long usage) {
        this.usage = usage;
    }

    public Long getConnectionTimeoutRate() {
        return connectionTimeoutRate;
    }

    public void setConnectionTimeoutRate(Long connectionTimeoutRate) {
        this.connectionTimeoutRate = connectionTimeoutRate;
    }

    public Long getWait() {
        return wait;
    }

    public void setWait(Long wait) {
        this.wait = wait;
    }

    public Long getMonitorTime() {
        return monitorTime;
    }

    public void setMonitorTime(Long monitorTime) {
        this.monitorTime = monitorTime;
    }
}
